using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI.Extensions;

public class ScrollViewRectExample02 : MonoBehaviour
{
    [FormerlySerializedAs("m_ScrollView")]
    [SerializeField]
    private UIScrollViewRect ScrollViewRect = default;

    private void Start()
    {
        ScrollViewRect.PaddingTop = 20;
        
        ScrollViewRect.UpdateData(1000);
        ScrollViewRect.JumpTo(100);
    }
}